﻿@model MVCMongo.ViewModel.FeedCommentViewModel

@{
    ViewBag.Title = "Gell All Comments";
    int i = 1;
}
@foreach (var item in Model.ParentComments)
{
    <div class="media">
        <a class="pull-left" href="#">
            @{
                var image = "/images/photos/avatar-" + i + ".jpg";
                i++;
            }
        
            @if (i <= 6)
            {
                <img src="@image" class="setborder" alt="" title="" />
            }
            else
            {
                <img src="/images/photos/avatar-1.jpg" class="setborder" alt="" title="" />
            }
        </a>
        <div class="media-body">
            <h4 class="media-heading">@item.Name  <small>@item.CommentedOn.ToLongDateString()</small></h4>
            <p>@item.Description</p>
        </div>
    </div>
    
}
